<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改商品信息</title>
</head>
<body>
	<form id="itemForm"
		action="${pageContext.request.contextPath}/updateItem.action"
		enctype="multipart/form-data" method="post">
		<input type="hidden" name="id" value="${item.id}" />修改商品信息：
		<table width="100%" border=1>
			<tr>
				<td>商品名称
				<td />
				<td><input type="text" name="name" value="${item.name}" />
				<td />
			<tr />
			<tr>
				<td>商品价格
				<td />
				<td><input type="text" name="price" value="${item.price}" />
				<td />
			<tr />
			<tr>
				<td>商品简介
				<td />
				<td><textarea rows="3" cols="30" name="detail">${item.detail}</textarea>
				<td />
			<tr />
			<tr>
				<td>商品图片</td>
				<td><c:if test="${item.pic != null}">
						<img src="/pic/${item.pic}" width=100 height=100 />
						<br />
					</c:if> <input type="file" name="pictureFile" /></td>
			</tr>
			<tr>
				<td colspan="2" align="center"><input type="submit" value="提交" />
				</td>
			</tr>

		</table>

	</form>
</body>
</html>